home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 49 / Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso / -serious- / graphics / amicad / arexx_english / searchlib.amicad < prev    next >
Text File  |  1999-12-06  |  806b  |  28 lines

  1. /* Recherche d'un composant dans une bibliothèque */
  2. /* $VER: 1.01e (© R.Florac, 22 mai 1999) */
  3.  
  4. options results     /* indispensable pour récupérer le résultat des macros */
  5.  
  6. signal on error     /* pour l'interception des erreurs */
  7. signal on syntax
  8.  
  9. 'ASKTEXT("What is the name of the"+CHR(10)+"searched component ?"+CHR(10)+"You can use the"+CHR(10)+"AmigaDOS wild chars to"+CHR(10)+"specify this name."+CHR(10)+"Examples: TRANS#? 74#?244","")'
  10. nom=result
  11.  
  12. if nom="" then exit
  13.  
  14. address command
  15. 'Work:AmiCAD/SearchLib >CON:100/100/600/200/SearchLib/CLOSE/WAIT/SCREENAmiCAD 'nom' QUIET ALL'
  16.  
  17. exit
  18.  
  19. /* Traitement des erreurs, interruption du programme */
  20. syntax:
  21. erreur=RC
  22. 'MESSAGE("Syntax error"+CHR(10)+"in line 'SIGL'"+CHR(10)+"'errortext(erreur)'")'
  23. exit
  24.  
  25. error:
  26. 'MESSAGE("Error in line 'SIGL'")'
  27. exit
  28.